<div class="modal-header">
    自动创建
    <i class="yb-icon ico-close" title="关闭" ng-click="cancel()"></i>
</div>
<div class="modal-body">
    <div class="row">
        <form name="form" class="form-horizontal clearfix" novalidate>
            <div class="form-group">
                <label class="col-xs-2 control-label"><i>*</i>单据类型：</label>
                <div class="col-xs-8 wrapper-none">
                    <select class="form-control" ng-model="dataInfo.billType" name="billType" required
                        ng-options="item.code as item.name for item in billTypeList">
                    </select>
                </div>
                <div class="col-xs-5 msg-block" ng-show="form.billType.$dirty || (form.billType.$invalid && submitted)">
                    <div class="error-msg" ng-if="form.billType.$error.required">
                        <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                    </div>
                </div>
            </div>
            <div class="form-group" ng-if="dataInfo.billType=='XGFT'">
                <label class="col-xs-2 control-label"><i>*</i>仓库：</label>
                <div class="col-xs-8 wrapper-none">
                    <select class="form-control" ng-model="dataInfo.warehouseCode" name="warehouseCode" required
                        ng-options="item.code as item.name for item in warehouseList">
                    </select>
                    <div class="msg-block" ng-show="form.warehouseCode.$dirty || (form.warehouseCode.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.warehouseCode.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-2 control-label"><i>*</i>客户：</label>
                <div class="col-xs-8 wrapper-none">
                    <input type="text" class="form-control" ng-model="dataInfo.dealerOrgName" name="dealerOrgName" required
                        ng-click="selectDealer()" placeholder="请选择">
                    <div class="msg-block" ng-show="form.dealerOrgName.$dirty || (form.dealerOrgName.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.dealerOrgName.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="row m-t-md">
        <div class="text-center">
            <button class="btn btn-primary m-r-md" ng-click="ok(form.$valid)">确定</button>
            <button class="btn btn-default" ng-click="cancel()">取消</button>
        </div>
    </div>
</div>
